import request from '../../router/axios'

export function getTree(params) { // 获取树结构
  return request({
    url: '/admin/busiFunction/tree',
    method: 'get',
    params
  })
}

export function getUrlParams(routePrefix) {
  return request({
    url: `${routePrefix}/sysconfig/method/urls?returnListOrPage=1`,
    method: 'get'
  })
}

// 根据业务模块code获取国际化资源
export function getsysI18n(appCode) {
  return request({
    url: '/admin/sysi18n/byappcode',
    params: {
      appCode
    }
  })
}
